package com.yiduo.outpost.ucenter.config;

import java.time.Duration;
import java.util.regex.Pattern;

/**
 * 常量配置
 */
public class Constants {

    public static final Duration REMEMBER_ME_TTL = Duration.ofDays(14L);

    public static final String ALREADY_BOUND = "error.wechat.binding.already.exists";
    public static final String NO_EXISTS_BOUND = "error.wechat.binding.noExists";

    public static final String REGEXP = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,16}$";

    public static final Pattern PATTERN = Pattern.compile(REGEXP);
}
